home *** CD-ROM | disk | FTP | other *** search
/ Aminet 1 (Walnut Creek) / Aminet - June 1993 [Walnut Creek].iso / aminet / disk / misc / reformat10.lha / ReFormat / ReFormat.doc < prev    next >
Text File  |  1993-04-30  |  2KB  |  55 lines

  1. ReFormat.doc for version 1.0 (April 29, 1993)
  2.  
  3.  
  4. What is ReFormat, why did I want it, and how do you use it?
  5. -----------------------------------------------------------
  6.  
  7. ReFormat will basically do a
  8.    FORMAT DRIVE <drive>
  9.           NAME <keep same volume name>
  10.           <keep previous filesystem (NOFFS | FFS)>
  11.           QUICK
  12.           NOICONS
  13. on the drive that you specify as the only command line parameter.
  14.  
  15. I wanted this utility because I often do very simple backups using the
  16. COPY command (as an example:  COPY CSRC:Utilities DF0: CLONE)
  17. and when I want to update my backups, I wish to quickly blank the floppy,
  18. but have it keep the original volume name, since its going to be reused
  19. for the same purpose.  I tried to do this with AmigaDOS shell scripts (this
  20. is something that really should have been built into the existing FORMAT
  21. command as an option, say KEEPNAME), but I was unable to succede...  so I
  22. gave in a wrote a program.
  23.  
  24. Usage is simple, from the command line only.  (This is a simple utility...
  25. I may add the ability to use it from WorkBench later...  I don't have the
  26. need myself right now...)
  27.  
  28. Heres some usage examples:
  29.    ReFormat ?                (DEVICE=DRIVE/A/K,NOPROMPT/S,ABOUT/S,VERSION/S)
  30.    ReFormat DRIVE  DF0:
  31.    ReFormat DEVICE DF1: VERSION
  32.    ReFormat DRIVE  DH0: NOPROMPT  {Probably *NOT* something you want to do!}
  33.    ReFormat ABOUT
  34.  
  35. Thats about all there is to it...  I have included the code, for those who
  36. are curious about these things.  I learned a fair amount while writing this,
  37. and one thing in particular is worthy of note.  If you wish to use the
  38. dos.library function Format(), it appears you *have* to first Inhbit() the
  39. drive you wish to Format()...  makes sense, but I wish the manuals (I found
  40. no mention of this in RKM: Includes & Autodocs or in
  41. The AmigaDOS Manual, 3rd edition) had indicated this little fact...
  42.  
  43. This program, and the C source code, are not to be redistributed in any
  44. altered format, but other than that restriction, this package is placed in
  45. the public domain.  (Basically don't change this code and then try and make
  46. it look like I made the changes...  include it into your own programs if you
  47. like, but give me some credit...  :-)
  48.  
  49. If you have any questions, comments or concerns...  please email me and
  50. tell me whats on your mind...
  51.  
  52. Nick MacDonald
  53. email:  i6t4@jupiter.sun.csd.unb.ca
  54. voice:  (506) 457-1931
  55.